home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / LOCALE.H < prev    next >
C/C++ Source or Header  |  1993-11-23  |  2KB  |  85 lines

  1. /***
  2. *locale.h - definitions/declarations for localization routines
  3. *
  4. *   Copyright (c) 1988-1992, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *   This file defines the structures, values, macros, and functions
  8. *   used by the localization routines.
  9. *   [ANSI]
  10. *
  11. ****/
  12.  
  13. #ifndef _INC_LOCALE
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif 
  18.  
  19. #if (_MSC_VER <= 600)
  20. #define __cdecl     _cdecl
  21. #define __far       _far
  22. #endif 
  23.  
  24. /* define NULL pointer value */
  25.  
  26. #ifndef NULL
  27. #ifdef __cplusplus
  28. #define NULL    0
  29. #else 
  30. #define NULL    ((void *)0)
  31. #endif 
  32. #endif 
  33.  
  34.  
  35. /* Locale categories */
  36.  
  37. #define LC_ALL      0
  38. #define LC_COLLATE  1
  39. #define LC_CTYPE    2
  40. #define LC_MONETARY 3
  41. #define LC_NUMERIC  4
  42. #define LC_TIME     5
  43.  
  44. #define LC_MIN      LC_ALL
  45. #define LC_MAX      LC_TIME
  46.  
  47.  
  48. /* Locale convention structure */
  49.  
  50. #ifndef _LCONV_DEFINED
  51. struct lconv {
  52.     char *decimal_point;
  53.     char *thousands_sep;
  54.     char *grouping;
  55.     char *int_curr_symbol;
  56.     char *currency_symbol;
  57.     char *mon_decimal_point;
  58.     char *mon_thousands_sep;
  59.     char *mon_grouping;
  60.     char *positive_sign;
  61.     char *negative_sign;
  62.     char int_frac_digits;
  63.     char frac_digits;
  64.     char p_cs_precedes;
  65.     char p_sep_by_space;
  66.     char n_cs_precedes;
  67.     char n_sep_by_space;
  68.     char p_sign_posn;
  69.     char n_sign_posn;
  70.     };
  71. #define _LCONV_DEFINED
  72. #endif 
  73.  
  74. /* function prototypes */
  75.  
  76. char * __cdecl setlocale(int, const char *);
  77. struct lconv * __cdecl localeconv(void);
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif 
  82.  
  83. #define _INC_LOCALE
  84. #endif 
  85.